package ru.royalgatemagazine.afisha;

import android.util.Log;

public abstract class Debug {
	final String mClassName;
	public Debug(Object o){
		mClassName = o.getClass().getSimpleName();
	}
	protected abstract boolean isDBG();
	public void log(Object o){
		if(isDBG()){
			if( o!=null ){
				Log.w(mClassName, o.toString());
			}
			else{
				Log.w(mClassName, "null");
			}
		}
	}
}
